﻿<Window x:Class="Headsight.BPMN2WF.GUI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Headsight BPMN2WF" Height="750" Width="1025">
    

    <Grid>
        <Grid.Resources>
            <BooleanToVisibilityConverter x:Key="BooleanVisibility" />
        </Grid.Resources>

        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>

        <Border Background="#C0C0C0" Grid.Row="0">
            <Grid x:Name="DesignerGrid" Visibility="{Binding DesignerVisible, Converter={StaticResource BooleanVisibility}}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="200" />
                </Grid.ColumnDefinitions>
            </Grid>
        </Border>
        
        <Border Background="#D3D3D3" Grid.Row="1" Padding="10">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Name="BtnOpen" Content="Open BPMN" Padding="5" Width="100" Margin="5" Click="Open_Click" />
                <Button Name="BtnSave" Content="Save XAML" Padding="5" Width="100" Margin="5" Click="Save_Click" IsEnabled="{Binding DesignerVisible}" />
                <Button Name="BtnCancel" Content="Cancel" Padding="5" Width="100" Margin="20,5,5,5" Click="BtnCancel_Click" />
            </StackPanel>
        </Border>
    </Grid>
    
</Window>
